//
//  XJLDetailInfoViewController.m
//  XJL_WeChat
//
//  Created by XJL on 16/8/6.
//  Copyright © 2016年 Xujiali. All rights reserved.
//

#import "XJLDetailInfoViewController.h"
#import "XJLChatViewController.h"
#import "XJLChatController.h"

@interface XJLDetailInfoViewController ()
@property (weak, nonatomic) IBOutlet UILabel *weChatIdLabel;

@end

@implementation XJLDetailInfoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //显示ID
    self.weChatIdLabel.text = [NSString stringWithFormat:@"WeChat ID:%@",self.buddy.username];
}

- (IBAction)sendMessageAction:(id)sender {
//    XJLChatViewController *chatVc =[UIStoryboard storyboardWithName:@"XJLChatViewController" bundle:nil].instantiateInitialViewController;
    XJLChatController *chatVc = [[XJLChatController alloc] initWithConversationChatter:self.buddy.username conversationType:eConversationTypeChat];
    chatVc.hidesBottomBarWhenPushed = YES;

    [self.navigationController pushViewController:chatVc animated:YES];
    
}

@end
